import request from '../util/request.js'
const baseUrl = "store/product/cart/"

export function addCart(data) {
	return request.post(baseUrl + "add", data, {
		noAuth: false
	})
}

export function computedPrice(data) {
	return request.get(baseUrl + "computed", data, {
		noAuth: false
	})
}


export function getCartList(data) {
	return request.get(baseUrl + "list", data, {
		noAuth: false
	})
}


export function updateCart(data) {
	return request.post(baseUrl + "update", data, {
		noAuth: false
	})
}

export function deleteCart(data) {
	return request.get(baseUrl + "delete", data, {
		noAuth: false
	})
}

export function computedProduce(data) {
 return request.get(baseUrl + "computed/product", data, {
  noAuth: false
 })
}
export function getAttrList(data) {
 return request.get("store/product/attr/list", data, {
  noAuth: false
 })
}
export function countCart() {
	return request.get(baseUrl + "count", {}, {
		noAuth: false,
		noVerify: true
	})
}
